package com.yunmai11.yunmai.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.yunmai11.yunmai.R;
import com.yunmai11.yunmai.utils.CommonUtils;

/**
 * Created by Administrator on 2017/1/15.
 */
public class WaterActivity extends Activity implements View.OnClickListener {
    private EditText et_account;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.water);

        init();
    }

    private void init() {
        et_account = (EditText) findViewById(R.id.et_account);
        Button btn_submit = (Button) findViewById(R.id.btn_submit);
        btn_submit.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        if (view.getId() == R.id.btn_submit) {
            String account = et_account.getText().toString();
            CommonUtils.showToast(this, account);
        }
    }
}
